package cn.yzfy.common.model.dto;

import cn.yzfy.common.base.dto.BaseLongIdDTO;
import cn.yzfy.common.validate.ValidateNotChinese;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;


import java.io.Serial;

/**
 * 重置密码接口接受参数对象
 */
@Getter
@Setter
public class ChangePasswordDTO extends BaseLongIdDTO {
  
  @Serial
  private static final long serialVersionUID = -233739729144636666L;
  
  @Schema(description = "旧密码")
  @ValidateNotChinese.ValidateNotNullAndEmpty(message = "旧密码不能为空")
  private String oldPassword;
  
  @Schema(description = "新密码")
  @ValidateNotChinese.ValidateNotNullAndEmpty(message = "新密码不能为空")
  private String newPassword;
}